package org.cuit.epoch.seon;

import org.cuit.epoch.seon.base.Animal;
import org.cuit.epoch.seon.base.Change;
import org.cuit.epoch.seon.entity.Cat;
import org.cuit.epoch.seon.entity.Dog;
import org.cuit.epoch.seon.entity.MachineCat;

/**
 * @author Seon
 * @since 2024-08-30
 * @version 1.0
 */
public class Client {
    public static void main(String[] args) {

        Animal[] animals = new Animal[3];

        animals[0] = new Cat("小猫一号");
        animals[1] = new Cat("小猫二号");
        animals[2] = new Dog("大狗子");

        Change cat = new MachineCat("机器猫");
        cat.doMagic();

        for (int i = 0; i < 3; i++) {
            animals[i].executeShout();
        }

    }
}